from src.lib.log_util import extract_features_from_text

input_text_path = r"C:\Users\xendx\Desktop\models\end_to_end_1024\log.txt"
output_excel_path = r"C:\Users\xendx\Desktop\models\end_to_end_1024\log.xlsx"
feature_names = ['epoch', 'loss', ['threshold', 'acc']]
feature_triggers = ['batches\nEpoch', 'Loss:', 'threshold	accuracy']
feature_types = ['int', 'float', ['float', 'perc']]

extract_features_from_text(input_text_path, output_excel_path, feature_names, feature_triggers, feature_types)
